
public class VarValue {
int a;
boolean b;
char c;
double d;
String s;
void showValue() {
	System.out.println("全局变量a="+a);
	System.out.println("全局变量b="+b);
	System.out.println("全局变量c="+c);
	System.out.println("全局变量d="+d);
	System.out.println("全局变量s="+s);
}
public static void main(String[] args) {
	int a=1;
	System.out.println("局部变量a="+a);
	VarValue obj=new VarValue();
	obj.showValue();
	
}
}
